$(document).ajaxSend(function(e,xqr,op){
    var token=localStorage.getItem("user_token");
    xqr.setRequestHeader("user_token",token);
});
function logout()
{
    localStorage.removeItem("user_token");
    location.href="login.html";
}